package com.gdkf.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.annotation.Bean;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcy
 * @since 2022-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Visit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "vi_id", type = IdType.AUTO)
    private Integer viId;

    /**
     * 楼房号
     */
    private String housId;

    /**
     * 宿舍号
     */
    private String dormId;

    /**
     * 来访人员姓名
     */
    private String viName;

    /**
     * 来访日期
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-ddTHH:mm")
    private LocalDateTime viDate;

    /**
     * 离开时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-ddTHH:mm")
    private LocalDateTime viOut;

    /**
     * 登记员
     */
    private String viWatch;

    /**
     * 备注
     */
    private String viDes;


}
